package com.amir.common.beans

import com.amir.common.utils.Constant
import com.amir.common.utils.SPUtils

data class TokenEntity(
    val access_token: String,
    val expires_in: Int,
    val refresh_token: String,
    val scope: String
):BaseResult(){

    fun save(){

        SPUtils.save(Constant.AccessToken,this.access_token.toString())
        SPUtils.save(Constant.Refresh_token,this.refresh_token.toString())
    }
}